package com.ruiysoft.entity.logistics;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author AUTO GEN
 * @since 2018-11-17
 */
@TableName("logistics_shop_api_conf")
public class LogisticsShopApiConf extends Model<LogisticsShopApiConf> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("shop_id")
    private Long shopId;

    @TableField("api_supplier")
    private String apiSupplier;

    private Integer priority;

    private Boolean enabled;

    @TableField("api_parameters")
    private String apiParameters;

    public Integer getId() {
        return id;
    }

    public LogisticsShopApiConf setId(Integer id) {
        this.id = id;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public LogisticsShopApiConf setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public String getApiSupplier() {
        return apiSupplier;
    }

    public LogisticsShopApiConf setApiSupplier(String apiSupplier) {
        this.apiSupplier = apiSupplier;
        return this;
    }
    public Integer getPriority() {
        return priority;
    }

    public LogisticsShopApiConf setPriority(Integer priority) {
        this.priority = priority;
        return this;
    }
    public Boolean getEnabled() {
        return enabled;
    }

    public LogisticsShopApiConf setEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }
    public String getApiParameters() {
        return apiParameters;
    }

    public LogisticsShopApiConf setApiParameters(String apiParameters) {
        this.apiParameters = apiParameters;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LogisticsShopApiConf{" +
        "id=" + id +
        ", shopId=" + shopId +
        ", apiSupplier=" + apiSupplier +
        ", priority=" + priority +
        ", enabled=" + enabled +
        ", apiParameters=" + apiParameters +
        "}";
    }
}
